var web = document.querySelector(".web"),
    img = web.querySelector("img"),
    button = document.querySelector("button"),
    buttonImg = button.querySelector("img");
    var imgOne = "shouye1.jpg"
	var imgTwo = "shouye2.jpg";
	var buttonImgOne = "shouyebutton.png";
	var buttonImgTwo = "shouyebutton2.png";
    var count = 1;
setInterval(function home(){
	if(count == 1){
		img.src = "img/"+imgTwo;
		buttonImg.src = "img/"+buttonImgTwo;
		console.log(2);
		count = 0;
	}else{
		img.src = "img/"+imgOne;
		buttonImg.src = "img/"+buttonImgOne;
		count = 1;
		console.log(1);
	}
},500)
    